﻿using Serialize.Linq.Nodes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace PubSubGeneric.WCFContracts
{
    [ServiceContract(CallbackContract = typeof(IWCFSubscriber))]
    [ServiceKnownType("GetKnownTypes", typeof(KnownTypesProvider))]
    public interface IWCFSubscriptionServiceAdapter
    {
        [OperationContract]
        void Subscribe(string topic, string typeName);

        [OperationContract(Name = "Subs2")]
        void Subscribe(string topic, ExpressionNode predicate, string typeName);

        [OperationContract()]
        void UnSubscribe(string topic, string typeName);

        [OperationContract(Name = "UnSubs2")]
        void UnSubscribe(string topic, ExpressionNode predicate, string typeName);
    }
}
